NXP Semiconductors /LPC15xx /ADC0 /FLAGS

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as FLAGS

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (THCMP0)THCMP0 0 (THCMP1)THCMP1 0 (THCMP2)THCMP2 0 (THCMP3)THCMP3 0 (THCMP4)THCMP4 0 (THCMP5)THCMP5 0 (THCMP6)THCMP6 0 (THCMP7)THCMP7 0 (THCMP8)THCMP8 0 (THCMP9)THCMP9 0 (THCMP10)THCMP10 0 (THCMP11)THCMP11 0 (OVERRUN0)OVERRUN0 0 (OVERRUN1)OVERRUN1 0 (OVERRUN2)OVERRUN2 0 (OVERRUN3)OVERRUN3 0 (OVERRUN4)OVERRUN4 0 (OVERRUN5)OVERRUN5 0 (OVERRUN6)OVERRUN6 0 (OVERRUN7)OVERRUN7 0 (OVERRUN8)OVERRUN8 0 (OVERRUN9)OVERRUN9 0 (OVERRUN10)OVERRUN10 0 (OVERRUN11)OVERRUN11 0 (SEQA_OVR)SEQA_OVR 0 (SEQB_OVR)SEQB_OVR 0RESERVED 0 (SEQA_INT)SEQA_INT 0 (SEQB_INT)SEQB_INT 0 (THCMP_INT)THCMP_INT 0 (OVR_INT)OVR_INT

Description

A/D Flags Register. Contains the four interrupt request flags and the individual component overrun and threshold-compare flags. (The overrun bits replicate information stored in the result registers).

Fields

THCMP0

Threshold comparison event on Channel 0. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

THCMP1

Threshold comparison event on Channel 1. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

THCMP2

Threshold comparison event on Channel 2. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

THCMP3

Threshold comparison event on Channel 3. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

THCMP4

Threshold comparison event on Channel 4. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

THCMP5

Threshold comparison event on Channel 5. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

THCMP6

Threshold comparison event on Channel 6. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

THCMP7

Threshold comparison event on Channel 7. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

THCMP8

Threshold comparison event on Channel 8. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

THCMP9

Threshold comparison event on Channel 9. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

THCMP10

Threshold comparison event on Channel 10. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

THCMP11

Threshold comparison event on Channel 11. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

OVERRUN0

Mirrors the OVERRRUN status flag from the result register for A/D channel 0

OVERRUN1

Mirrors the OVERRRUN status flag from the result register for A/D channel 1

OVERRUN2

Mirrors the OVERRRUN status flag from the result register for A/D channel 2

OVERRUN3

Mirrors the OVERRRUN status flag from the result register for A/D channel 3

OVERRUN4

Mirrors the OVERRRUN status flag from the result register for A/D channel 4

OVERRUN5

Mirrors the OVERRRUN status flag from the result register for A/D channel 5

OVERRUN6

Mirrors the OVERRRUN status flag from the result register for A/D channel 6

OVERRUN7

Mirrors the OVERRRUN status flag from the result register for A/D channel 7

OVERRUN8

Mirrors the OVERRRUN status flag from the result register for A/D channel 8

OVERRUN9

Mirrors the OVERRRUN status flag from the result register for A/D channel 9

OVERRUN10

Mirrors the OVERRRUN status flag from the result register for A/D channel 10

OVERRUN11

Mirrors the OVERRRUN status flag from the result register for A/D channel 11

SEQA_OVR

Mirrors the global OVERRUN status flag in the SEQA_GDAT register

SEQB_OVR

Mirrors the global OVERRUN status flag in the SEQB_GDAT register

RESERVED

Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.

SEQA_INT

Sequence A interrupt/DMA flag. If the MODE bit in the SEQA_CTRL register is 0, this flag will mirror the DATAVALID bit in the sequence A global data register (SEQA_GDAT), which is set at the end of every A/D conversion performed as part of sequence A. It will be cleared automatically when the SEQA_GDAT register is read. If the MODE bit in the SEQA_CTRL register is 1, this flag will be set upon completion of an entire A sequence. In this case it must be cleared by writing a 1 to this SEQA_INT bit. This interrupt must be enabled in the INTEN register.

SEQB_INT

Sequence A interrupt/DMA flag. If the MODE bit in the SEQB_CTRL register is 0, this flag will mirror the DATAVALID bit in the sequence A global data register (SEQB_GDAT), which is set at the end of every A/D conversion performed as part of sequence B. It will be cleared automatically when the SEQB_GDAT register is read. If the MODE bit in the SEQB_CTRL register is 1, this flag will be set upon completion of an entire B sequence. In this case it must be cleared by writing a 1 to this SEQB_INT bit. This interrupt must be enabled in the INTEN register.

THCMP_INT

Threshold Comparison Interrupt/DMA flag. This bit will be set if any of the 12 THCMP flags in the lower bits of this register are set to 1 (due to an enabled out-of-range or threshold-crossing event on any channel). Each type of threshold comparison interrupt on each channel must be individually enabled in the INTEN register to cause this interrupt. This bit will be cleared when all of the component flags in bits 11:0 are cleared via writing 1s to those bits.

OVR_INT

Overrun Interrupt flag. Any overrun bit in any of the individual channel data registers will cause this interrupt. In addition, if the MODE bit in either of the SEQn_CTRL registers is 0 then the OVERRUN bit in the corresponding SEQn_GDAT register will also cause this interrupt. This interrupt must be enabled in the INTEN register. This bit will be cleared when all of the individual overrun bits have been cleared via reading the corresponding data registers.

Links

()